import request from '@/utils/request'

// 查询排班计划分组配置列表
export function listSchedulingPlanGrouping(query) {
  return request({
    url: '/dispatch/schedulingPlanGrouping/list',
    method: 'get',
    params: query
  })
}

// 查询排班计划分组配置详细
export function getSchedulingPlanGrouping(id) {
  return request({
    url: '/dispatch/schedulingPlanGrouping/' + id,
    method: 'get'
  })
}

// 新增排班计划分组配置
export function addSchedulingPlanGrouping(data) {
  return request({
    url: '/dispatch/schedulingPlanGrouping',
    method: 'post',
    data: data
  })
}

// 修改排班计划分组配置
export function updateSchedulingPlanGrouping(data) {
  return request({
    url: '/dispatch/schedulingPlanGrouping',
    method: 'put',
    data: data
  })
}

// 删除排班计划分组配置
export function delSchedulingPlanGrouping(id) {
  return request({
    url: '/dispatch/schedulingPlanGrouping/' + id,
    method: 'delete'
  })
}

// 查询排班计划分组部位列表
export function getPlaceSelectList(planId,type) {
  return request({
    url: '/dispatch/schedulingPlanGrouping/getPlaceSelectList?planId='+planId+'&type=' + type,
    method: 'get'
  })
}


